<div class="qypeStatus">
<%
if session[:access_token].nil? || session[:access_token].blank?
%>
  <%= link_to "Authorize with Qype", {:controller => 'application', :action => 'create_qype_session'}, {:class => "button buttonLogin"} %>
<%
else
%>
    <%= link_to "Logout", {:controller => 'application', :action => 'destroy_qype_session'}, {:class => "button buttonLogout"} %>   
<%
end
%>
</div>